<?
//Last Modified By DPT on May/25/05 to fix issues with HTML
$Err1		= $_GET['Err1'];
$Err		= $_GET['Err'];

 $Err		=$_GET['Err'];
 $Action	=$_GET['Action'];

 if ($Action=="affiliate")
    $aff="selected = 'selected' ";
 else
     $mer="selected = 'selected' ";
?>
<table width="775"  border="0" align="center" class="outtbl" cellpadding="0" cellspacing="0">
  <tr>
    <td width="215" align="left" valign="top" class="lftnavbg">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="215" height="26" align="left" valign="top" class="lanbg"><table width="175"  border="0" cellspacing="0">
            <tr>
              <td width="215" align="right" valign="middle">
              <!-- Language: <select name="select2" class="style3">
                <option>English</option>
              </select>
			  -->
			  <? include_once "language_select.php"; ?>
			  </td>
            </tr>
          </table></td>
        </tr>
      </table>

        <table width="190"  border="0" cellspacing="0" cellpadding="15">
          <tr>
            <td width="215">
			<form name="login" action="login_validate.php" method="post">
			<table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="25" colspan="2" ><div align="center"><img src="images/login.gif" width="111" height="17" alt="" /></div></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="5" colspan="2" ><span class="style6">
                    <?=$Err?>
                  </span></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" class="style5"><?=$lang_Choose?>:</td>
                </tr>
                <tr>
                  <td height="20" colspan="2" ><select name="flag" class="style3">
                <option <?=$mer?> value="merchant"><?=$lang_Merchants?></option>
                <option <?=$aff?> value="affiliate"><?=$lang_Affiliates?></option>
            </select></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" ><span class="style5"><?=$lang_Username?>:</span></td>
                </tr>
                <tr>
                  <td height="20" colspan="2" ><input name="login" type="text" class="style3" value="" size="25"/></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" class="style5"><?=$lang_Password?>:</td>
                </tr>
                <tr>
                  <td width="60%"><input  name="password" type="password" class="style3" value="" size="15"/></td>
                  <td width="60" height="20" class="enter"><div class="sbt" onclick="document.login.submit()"  >&nbsp;&nbsp;&nbsp;&nbsp; Enter</div></td>
                </tr>
                <tr>
                  <td height="15" colspan="2" ><a href="#" onclick="viewLink()"><?=$lang_Forgot?>? </a></td>
                </tr>
                <tr>
                  <td height="5" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#7D7D7D"></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ><div align="justify"><?=$lang_iPartnersmanager?></div></td>
                </tr>
                <tr>
                  <td height="10" colspan="2" ></td>
                </tr>
                <tr>
                  <td height="1" colspan="2" bgcolor="#797979"></td>
                </tr>
            </table></form></td>
          </tr>
    </table></td>
    <td height="100%" rowspan="2" align="left" valign="top"><table width="95%" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="85" bgcolor="#ffa200"> <img src="images/innerbox2_01.gif" width="24" height="26" alt=""/></td>
        <td height="26" colspan="4" bgcolor="#ffa200"><div align="center" class="style4"><?=$lang_contactus?> </div></td>
      </tr>
      <tr>
        <td height="2" colspan="5"  class="ltrtbrdr1">
            <form  method="post" action="contact_mail.php">
              <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" class="tablewbdr"  align="center">
                <tr>
                  <td colspan="4" height="1" class="red">
                    <p align="center"><br/>
                        <?=$Err1?></p>
                  </td>
                </tr>
                <tr>
                  <td width="13%" height="7">
                    </td>
                  <td colspan="3" height="7"> </td>
                </tr>
                <tr>
                  <td width="13%" align="right" height="20">&nbsp; </td>
                  <td width="37%" height="30" align="right">
                    <?=$lang_Name?></td>
                  <td width="2%" height="30" align="right">&nbsp; </td>
                  <td width="48%" align="left" height="30">
                    <input type="text" name="Name" size="37" value="<?=$Name?>"/>
                  </td>
                </tr>
                <tr>
                  <td width="13%" align="right" height="20"> </td>
                  <td width="37%" height="25" align="right" valign="top">
                    <?=$lang_Address?></td>
                  <td width="2%" align="center" height="25">&nbsp;</td>
                  <td width="48%" align="left" height="25">
                    <textarea class="box" cols="35" name="Address" rows="5" ><?=$Address?></textarea>
                  </td>
                </tr>
                <tr>
                  <td width="13%" align="right" height="20"> <font face="Tahoma" size="2" color="#FF6939">&nbsp;</font></td>
                  <td width="37%" align="right" height="30">
                    <?=$lang_Location?></td>
                  <td width="2%" align="center" height="25">&nbsp;</td>
                  <td width="48%" align="left" height="25">
                    <input type="text" name="Location" size="37" value="<?=$Location?>"/></td>
                </tr>
                <tr>
                  <td width="13%" align="right" height="20">&nbsp; </td>
                  <td width="37%" align="right" height="30">
                    <?=$lang_EmailId?></td>
                  <td width="2%" align="center" height="25">&nbsp;</td>
                  <td width="48%" align="left" height="25">
                    <input type="text" name="Email" size="37" value="<?=$Email?>"/></td>
                </tr>
                <tr>
                  <td colspan="4" height="19">
                    </td>
                </tr>
                <tr align="center">
                  <td height="82" colspan="4">

                      <textarea class="box" cols="68" name="Message" rows="5" ><?=$Message?></textarea>
                  </td>
                </tr>
                <tr align="right">
                  <td height="42" colspan="4">
                    <br/>
                            <input  name="contact" type="submit" value="<?=$contact_ussend?>" />
                  </td>
                </tr>
              </table>
            </form>            </td>
      </tr>
      <tr>
        <td height="26" colspan="4" bgcolor="#d2d2d2" class="lftborder">&nbsp; </td>
        <td width="47" height="26" align="right" bgcolor="#d2d2d2"> <img src="images/innerbox2_07.gif" width="25" height="26" alt=""/></td>
      </tr>
      <tr>
        <td> <img src="images/spacer.gif" width="24" height="1" alt=""/></td>
        <td width="161"> <img src="images/spacer.gif" width="105" height="1" alt=""/></td>
        <td width="41"> <img src="images/spacer.gif" width="3" height="1" alt=""/></td>
        <td width="196"> <img src="images/spacer.gif" width="103" height="1" alt=""/></td>
        <td> <img src="images/spacer.gif" width="25" height="1" alt=""/></td>
      </tr>
    </table>      <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td width="215" height="23" align="left" valign="bottom" class="lftnavbg"><img src="images/lft_bt_13.gif" width="215" height="23" alt=""/></td>
  </tr>
</table>
<script language="javascript" type="text/javascript">
           function viewLink()
                {

                   url="forgotpass.php";
                   nw = open(url,'new','height=200,width=450,scrollbars=yes');
                   nw.focus();
                }
 </script>